package com.drcoffee.drcoffeemall.mapper;

import com.drcoffee.drcoffeemall.entry.FAQ;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface FAQMapper {
    //    @Select("SELECT * FROM t_faq WHERE language = #{language} AND machine_id = #{machine_id} AND title LIKE #{search}")
    @Select("SELECT * FROM t_faq WHERE language = #{language} AND title LIKE #{search}")
    List<FAQ> getFAQ(String language, Integer machine_id, String search);
}
